import http from '@/utils//http';

/**
 * 填写订单-获取预付订单
 */
export const getMemberOrderPre = () => {
    return http({
        url: '/member/order/pre'
    })
}

/**
 * 提交订单
 */
export const postMemberOrder = (data) => {
    return http({
        url: '/member/order',
        method: 'post',
        data
    })
}

/**
 * 获取订单详情
 */
export const getMemberOrderDetail = (id) => {
    return http({
        url: `/member/order/${id}`
    })
}

/**
 * 获取微信支付参数
 */
export const getPayWxPayMiniPay = (orderId) => {
    return http({
        url: '/pay/wxPay/miniPay',
        data: { orderId }
    })
}

/**
 * 模拟获取微信支付参数
 */
export const getPayWxPayMiniPayTest = (orderId) => {
    return http({
        url: '/pay/wxPay/miniPay',
        data: { orderId }
    })
}